import { defHttp } from '/@/utils/http/axios'
import { PageResult, Result } from '/#/axios'
import { BaseEntity } from '/#/web'

/**
 * 年级分类统计
 */
export function countGrade() {
  return defHttp.get<Result<PageResult<any>>>({
    url: '/studentSys/countGrade',
  })
}

/**
 * 高一已报名学生按专业统计
 */
export function countSpeciality() {
  return defHttp.get<Result<PageResult<any>>>({
    url: '/studentSys/countSpeciality',
  })
}

/**
 * 高一已报名学生按专业统计
 */
export function countSchool() {
  return defHttp.get<Result<PageResult<any>>>({
    url: '/studentSys/countSchool',
  })
}

/**
 * 专业
 */
export interface MajorModel extends BaseEntity {
  id?: number
  // 专业名称
  specialityName?: string
  // 专业代码
  specialityCode?: string
  // 招生年份
  planTime?: number | string
  // 名额
  num?: number
  // 名额
  passingScore?: number
}
